Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: QuickTime Components /
Chapter 8 - Video Digitizer Components / Video Digitizer Components Reference
Video Digitizer Component Functions / Utility Functions


VDGetPreferredTimeScale

The VDGetPreferredTimeScale function allows an application to determine a digitizer's preferred time scale.

pascal VideoDigitizerError VDGetPreferredTimeScale 
                                 (VideoDigitizerComponent ci, 
                                  TimeScale *preferred);
ci
Identifies the application's connection to the video digitizer component. An application obtains this value from the Component Manager's OpenComponent function.
preferred
Contains a pointer to a time scale structure. The video digitizer returns information about its preferred time scale.
DESCRIPTION
Apple's sequence grabber component uses this function to establish the time scale of the media that it creates from the digitizer's output. This is especially beneficial for digitizers that return compressed data, because it allows these digitizers to timestamp the frames very accurately.

If the digitizer does not have a preferred time scale, it returns a result code of digiUnimpErr.

RESULT CODES
noErr0No error
qtParamErr-2202Invalid parameter value

Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996




Navigation graphic, see text links

Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help